import request from "@/utils/request";

// /system/user/listCooperator 合伙人列表
export function listCooperator(data) {
  return request({
    url: "/system/user/listCooperator",
    method: "get",
    params: data,
  });
}

// post /system/user 新增用户
export function systemUser(data) {
  return request({
    url: "/system/user/addPartner",
    method: "post",
    data: data,
  });
}

// //system/user/editPartner 修改用户
export function editPartner(data) {
  return request({
    url: "/system/user/editPartner",
    method: "put",
    data: data,
  });
}
// 合伙人列表导出
export function exportCooperatorApi(data) {
  return request({
    url: "/system/user/exportCooperator ",
    method: "get",
    params: data,
  });
}
